package com.century.sjt.util;

import android.os.Environment;

import com.allinpay.appayassistex.APPayAssistEx;

/**
 * Created by luodong on 15/12/29.
 */
public class Constant {
    //v2 test
    //TAG，用于显示错误
    public final static String TAG = "WING";
    //用于显示的应用程序名称
    public final static String APPLICATION_NAME = "WING";

////    //通联支付环境
//       public final static String PAYKEY = APPayAssistEx.MODE_DEBUG;//测试
     public final static String PAYKEY= APPayAssistEx.MODE_PRODUCT;//正式


//        基础网址——正式
//    public static final String BaseWebHost = "http://123.57.204.46:88·89";
//    public static final String BaseHost =BaseWebHost+ "/century/api";
//    public static final String BaseHostLogined = BaseWebHost+"/century/app";

//    测试3.0
//    public static final String BaseWebHost = "http://192.168.0.100:8090";
//    public static final String BaseHost = BaseWebHost + "/century/api";
//    public static final String BaseHostLogined = BaseWebHost + "/century/app";
//    public static final String BaseImageUrl = BaseWebHost + "/century";
//    测试3.1
//    public static final String BaseWebHost = "http://192.168.0.100:8081";
//    public static final String BaseHost = BaseWebHost + "/century/api";
//    public static final String BaseHostLogined = BaseWebHost + "/century/app";
//    public static final String BaseImageUrl = BaseWebHost + "/century";
    //    正式测试 2.0
//    public static final String BaseWebHost = "http://www.sjt518.com:8080";
//    public static final String BaseHost =BaseWebHost+ "/century/api";
//    public static final String BaseHostLogined = BaseWebHost+"/century/app";
//    public static final String BaseImageUrl = BaseWebHost + "/century";
    //    测试 坚
//    public static final String BaseWebHost = "http://192.168.0.17:8080";
//    public static final String BaseHost = BaseWebHost+ "/century/api";
//    public static final String BaseHostLogined = BaseWebHost+"/century/app";
//    public static final String BaseImageUrl = BaseWebHost + "/century";
//
//    正式 2.0
    public static final String BaseWebHost = "http://www.sjt518.com";
    public static final String BaseHost = BaseWebHost+ "/century/api";
    public static final String BaseHostLogined = BaseWebHost+"/century/app";
    public static final String BaseImageUrl = BaseWebHost + "/century";

    /**
     * 公共部分
     */
    /**
     * 公共地址
     */

    //上传图片地址
    public static final String URL_UPLOAD_IMG = BaseHost + "/account/uploadImage.mobile";
    //下载图片地址
    public static final String URL_DOWNLOAD_IMG = BaseHost + "/picture/downloadPic?picId=";


    //上传图片的地址
    public static final String ImageUploadHost = BaseHost + "/sys/picture/upload";
    //下载大图的地址
    public static final String ImageHost_Small = BaseHost + "/sys/picture/downloadSmallPic/";
    //下载小图的地址
    public static final String ImageHost_Big = BaseHost + "/sys/picture/downloadBigPic/";
    //上传文件的地址
    public static final String UploadHost = BaseHost + "/sys/file/upload";
    //文件下载的地址
    public static final String FileDownHost = BaseHost + "/sys/file/download/";
    //绑定ClientId地址
    public static final String BindClientIdHost = BaseHostLogined + "/sys/user/bindClientId";
    //关于我们的地址
    public static final String AboutUsHost = BaseHost + "/common/aboutus";
    //新闻列表的地址
    public static final String NewsHost = BaseHost + "/newscast/newsList";
    //获取新闻详情
    public static final String GetNewDetail = BaseHost + "/newscast/news";
    //最新商家活动的地址
    public static final String ShopActivityHost = BaseHost + "/shopActivity/shopActivityList";
    //商家详情
    public static final String ShopDetail = BaseHost + "/shop/shopDetail";
    //最新服务资讯
    public static final String ServiceInfoHost = BaseHost + "/serviceInfo/serviceInfoList";

    //新闻详情的地址
    public static final String NewsDetailHost = BaseHost + "/newscast/newsDetail";
    //最新活动的地址
    public static final String ActivityDetailHost = BaseHost + "/activity/activityDetail";
    //活动报名的地址
    public static final String ActivityRegisterHost = BaseHostLogined + "/activity/activityRegister";
    //短信发送接口的地址
    public static final String SmsSendWebHost = BaseHost + "/modules/verifyCode/captcha/";
    //短信校验接口的地址
    public static final String SmsVerifyWebHost = BaseHost + "/modules/verifyCode/validCode/";

    /**
     * 用户部分
     */
    //验证邀请码是否有效
    public static final String CheckInviteCode = BaseHost + "/sys/user/checkInviteCode/";
    //验证手机号码是否重复的地址
    public static final String CheckMobileHost = BaseHost + "/sys//user/checkUserByMobile";
    //注册发送验证码
    public static final String RedisterCheckMobile = BaseHost + "/modules/verifyCode/captcha";
    //用户注册地址
    public static final String RegUserHost = BaseHost + "/sys/user/register";
    //用户注册手机验证码
    public static final String RegCaptcha = BaseHost + "/modules/verifyCode/captcha";
    //用户登录地址
    public static final String LoginUserHost = BaseHost + "/sys/user/login";
    //修改密码地址
    public static final String ChangePsdHost = BaseHostLogined + "/sys/user/changePwd";
    //读取用户信息地址
    public static final String UserRealInfoHost = BaseHost + "/sys/user/userDetail";
    //更新用户信息地址
    public static final String UpdateDetailHost = BaseHostLogined + "/sys/user/updateDetail";
    //用户详情的地址
    public static final String UserDetailHost = BaseHost + "/sys/user/userDetail";
    //实名认证
    public static final String SetRealNameHost = BaseHostLogined + "/sys/user/setRealName";
    //查询转账信息
    public static final String TransferInfoHost = BaseHostLogined + "/sys/user/transferInfo/";
    //查询转账信息
    public static final String ApplyTransferHost = BaseHostLogined + "/account/applyTransfer";

    //编辑个性签名
    public static final String EditWhatsUp = BaseHostLogined + "/sys/user/editWhatsUp";


    /**
     * 钱包部分
     */
    //查询账户余额
    public static final String QueryBalanceHost = BaseHostLogined + "/account/queryBalance";
    //获取充值订单
    public static final String QueryRechareHost = BaseHostLogined + "/account/applyDeposit";
    //取消充值订单
    public static final String GetDepositCancel = BaseHostLogined + "/account/depositCancel";
    //获取绑定的银行卡
    public static final String GetBindBankCardHost = BaseHostLogined + "/account/getBindBankCard";
    //获取提现银行卡
    public static final String GetWithdrawCard = BaseHostLogined + "/account/getWithdrawCard";
    //解除绑定银行卡
    public static final String GetUnbindBankCard = BaseHostLogined + "/account/unbindBankCard";
    //绑定银行卡发送验证码
    public static final String SendAuthCodeHost = BaseHostLogined + "/account/sendAuthCode";
    //绑定银行卡重复发送验证码
    public static final String resendAuthCode = BaseHostLogined + "/account/resendAuthCode";
    //快捷支付激活发送验证码
    public static final String activateSendAuthCode = BaseHostLogined + "/account/activateSendAuthCode";
    //快捷支付激活
    public static final String realNamePayActivate = BaseHostLogined + "/account/realNamePayActivate";
    //绑定银行卡
    public static final String BindBankCardHost = BaseHostLogined + "/account/bindBankCard";
    //查询实名信息
    public static final String GetRealNameInfo = BaseHostLogined + "/sys/user/getRealNameInfo";
    //获取卡Bin
    public static final String GetCardBin = BaseHostLogined + "/account/getCardBin";
    //申请绑定银行卡
    public static final String applyBindBankCard = BaseHostLogined + "/account/applyBindBankCard";
    //商家支付，获取商家信息的地址
    public static final String MerchantListHost = BaseHost + "/merchant/merchantList";
    //商家列表
    public static final String GetMerchantList = BaseHost + "/shop/shopList";
    //充值验证码发送
    public static final String ApplyDepositHost = BaseHostLogined + "/account/applyDeposit";
    //确认充值
    public static final String PayHost = BaseHostLogined + "/account/pay";
    //交易记录
    public static final String TranscationRecordHost = BaseHostLogined + "/account/transRecord";
    //交易记录详情
    public static final String TransDetail = BaseHostLogined + "/account/transDetail";
    //未结算订单详情
    public static final String SettlingTransDetail = BaseHostLogined + "/account/settlingTransDetail";
    //商家日结算交易订单
    public static final String MerAmountEachDays = BaseHostLogined + "/order/MerAmountEachDays";
    //商家获取日结算 月份接口
    public static final String turnoverMonthList = BaseHostLogined + "/order/turnoverMonthList";
    //商家待结算订单
    public static final String MerNoSettleOrders = BaseHostLogined + "/order/MerNoSettleOrders";
    //申请退款
    public static final String Refund = BaseHostLogined + "/order/refund";
    //商家同意退款
    public static final String approval = BaseHostLogined + "/order/approval";
    //用户结算
    public static final String UserNoSettleOrders = BaseHostLogined + "/order/UserNoSettleOrders";
    //用户交易记录
    public static final String aTranscationRecordHost = BaseHostLogined + "/account/queryTradeHistory";
    //用户交易2.0
    public static final String uTranscationRecordHost = BaseHostLogined + "/account/transRecordList";
    //商家支付申请
    public static final String ApplyConsume = BaseHostLogined + "/account/applyConsume";
    //paypal支付申请
    public static final String PayPal =  BaseHostLogined + "/account/payPal";
    //商家支付失败
    public static final String GetConsumeCancel = BaseHostLogined + "/account/consumeCancel";

    //订单 退货（部分退货）
    public static final String returnGood  = BaseHostLogined + "/order/returnGood";
    //订单 退货 （ 0:拒绝  1：同意   2：取消）
    public static final String returnGoodConfirm = BaseHostLogined + "/order/returnGoodConfirm";
    //申请退款  0:申请  1：同意   2：取消
    public static final String orderRefund = BaseHostLogined+"/order/orderRefund";
    //同意退款
    public static final String orderRefundConfirm = BaseHostLogined+"/order/orderRefundConfirm";


    /**
     * 商家部分
     */
    //banner
    public static final String BannerListHost = BaseHost + "/banner/bannerList";
    //商家详情
    public static final String GetMerchantInfo = BaseHost + "/merchant/getMerchantInf/";
    //商家支付
    public static final String ApplyConsumeHost = BaseHostLogined + "/account/applyConsume";
    //商品
    public static final String ShopGoods = BaseHost + "/shop/goods";
    //获取商品分类
    public static final String goodSortList = BaseHost + "/good/goodSortList";
    /**
     * 密码部分
     */
    //重置密码
    public static final String ResetPassWord = BaseHost + "/sys/user/forgetPwd";
    //重置密码短信验证码接口
    public static final String GetForgetPwdPhome = BaseHost + "/sys/user/forgetPwd/sendAuthCode/";
    //重置密码短信接口
    public static final String SendAuthCodePWd = BaseHost + "/sys/user/forgetPwd/sendAuthCode";
    //修改密码
    public static final String SetPassWord = BaseHostLogined + "/sys/user/changePwd";
    //设置支付密码
    public static final String NewPayPassWord = BaseHostLogined + "/sys/user/setCashPwd";
    //校验支付密码
    public static final String CheckCashPwd = BaseHostLogined + "/sys/user/checkCashPwd";

    //修改支付密码
    public static final String SetPayPassWord = BaseHostLogined + "/sys/user/resetCashPwd";
    //重置支付密码短信验证接口
    public static final String GetForgetPayPwdPhome = BaseHostLogined + "/sys/user/forgetCashPwd/sendAuthCode/";
    //重置支付密码短信接口 2.0
    public static final String SendAuthCode = BaseHostLogined + "/sys/user/forgetCashPwd/sendAuthCode";
    // 重置支付密码
    public static final String ResetPayPassWord = BaseHostLogined + "/sys/user/forgetCashPwd";

    /**
     * 话题部分
     */

    //发布话题地址
    public static final String PublishTopicHost = BaseHostLogined + "/topic/publishTopic";
    //公共话题列表地址
    public static final String TopicListHost = BaseHost + "/topic/topicList";
    //话题详情地址
    public static final String TopicDetailHost = BaseHost + "/topic/topicDetail";
    //朋友话题详情
    public static final String FriendsTopic = BaseHostLogined + "/topic/friendsTopic";
    //话题的评论列表的地址
    public static final String TopicCommentListHost = BaseHost + "/topic/topicCommentList";
    //评论操作的地址
    public static final String TopicCommentHost = BaseHostLogined + "/topic/topicComment";
    //点赞的地址
    public static final String TopicPraiseHost = BaseHostLogined + "/topic/topicPraise";
    //我的话题列表的地址
    public static final String MyTopicListHost = BaseHostLogined + "/topic/myTopicList";
    //个人主页
    public static final String friendTopicListHost = BaseHostLogined + "/topic/friendTopicList";
    //我的话题删除
    public static final String DeleteTopicHost = BaseHostLogined + "/topic/deleteTopic";
    //删除评论
    public static final String DeleteComment = BaseHostLogined + "/topic/deleteComment";
    //星钻评级明细
    public static final String LEVEL_EXPLAIN = BaseHost + "/commonText/text?code=LEVEL_EXPLAIN";

    /**
     * 订单
     */
    //创建订单
    public static final String createMyOrderHost = BaseHostLogined + "/order/createOrder";
    //我的订单
    public static final String myOrderInfoListHost = BaseHostLogined + "/order/myOrderList";
    //修改订单
    public static final String changeOrder = BaseHostLogined + "/order/modifyOrder";
    //订单详情
    public static final String orderDetails = BaseHostLogined + "/order/orderDetails";
    //取消订单
    public static final String cancleOrder = BaseHostLogined + "/order/cancelOrder";
    //发货
    public static final String sendOutGoods=BaseHostLogined+"/order/sendGood";


    /**
     * 物流信息
     */
    //创建物流信息
    public static final String createShippingHost = BaseHostLogined + "/shop/createShipping";
    //物流信息列表
    public static final String shippingInfoListHost = BaseHostLogined + "/shop/shippingInfoList";
    //卖家发货
    public static final String sendGood = BaseHostLogined + "/order/sendGood";
    /**
     * 地址管理
     */

    //地址列表
    public static final String queryReceiver = BaseHostLogined + "/receiver/queryReceiver";
    //新增地址
    public static final String addAddress = BaseHostLogined + "/receiver/addReceiver";
    //删除地址
    public static final String delectAddress = BaseHostLogined + "/receiver/delReceiver";
    //修改地址
    public static final String updataAddress = BaseHostLogined + "/receiver/updateReceiver";
    //设置默认地址
    public static final String defaultReceiver = BaseHostLogined + "/receiver/defaultReceiver";

    /**
     * 好友部分
     */
    //我的好友地址
    public static final String FriendListHost = BaseHostLogined + "/social/friendList";
    //查找好友地址
    public static final String FindFriendHost = BaseHostLogined + "/social/findFriendList";
    //发送好友申请
    public static final String AddFriendHost = BaseHostLogined + "/social/addFriend";

    //同意加好友
    public static final String PassFriendHost = BaseHostLogined + "/social/passFriend";
    //拒绝加好友
    public static final String RejectFriendHost = BaseHostLogined + "/social/rejectFriend";
    //删除好友
    public static final String DelFriendHost = BaseHostLogined + "/social/delFriend";
    //更新消息状态
    public static final String UpdateMsgStatus = BaseHostLogined + "/social/updateMsgState";
    //发送消息
    public static final String SendMsgHost = BaseHostLogined + "/social/sendMsg";
    //读取未读的系统消息
    public static final String UnReadMsgListHost = BaseHostLogined + "/social/msgList";
    //读取未读的好友消息
    public static final String UnReadMsgListByFriendHost = BaseHostLogined + "/social/msgListByFriend";

    //查找好友
    public static final String MobileUserDetail = BaseHostLogined + "/sys/user/mobileUserDetail/";
    //同意添加好友
    public static final String AddFriend = BaseHostLogined + "/friend/addFriend";
    //添加商家好友
    public static final String addFriendIsShop = BaseHostLogined + "/friend/addFriendIsShop";
    //获取好友列表
    public static final String GetFriendList = BaseHostLogined + "/friend/friendList";
    //获取好友列表（商家+好友）
    public static final String GetAllFriendList = BaseHostLogined + "/friend/friendList";
    //好友详情
    public static final String FriendDetailHost = BaseHostLogined + "/friend/friendDetail";
    //修改备注
    public static final String EditFriendRemarkHost = BaseHostLogined + "/friend/editFriendRemark";
    //获取还有单个信息
    public static final String GetOneFriendData = BaseHostLogined + "/sys/user/userDetail";
    //添加好友要调的接口
    public static final String SjtAddFriendHost = BaseHostLogined + "/modules/century/friend/addFriend";
    //删除好友要调的接口
    public static final String SjtDeleteFriendHost = BaseHostLogined + "/modules/century/friend/deleteFriend";
    //删除好友
    public static final String DeleteFriend = BaseHostLogined + "/friend/delFriend";


    //商家部分
    //查询支付方式
    public static final String GetPayMethodInfo = BaseHostLogined + "/account/getPayMethodInfo";
    //查询支付方式（国际版）
    public static final String getPayMethod = BaseHostLogined + "/account/getPayMethod";
    //商户列表
    public static final String ShopList = BaseHost + "/merchant/shopList";
    //账户查询
    public static final String Balance = BaseHostLogined + "/merchant/balance";
    //账户流水
    public static final String Bill = BaseHostLogined + "/merchant/bill";
    //支付
    public static final String Payment = BaseHostLogined + "/merchant/payment";
    //充值
    public static final String Recharge = BaseHostLogined + "/merchant/recharge";
    //计算提现费用
    public static final String GetFee = BaseHostLogined + "/account/getfee";
    //提现
    public static final String Withdraw = BaseHostLogined + "/account/withdraw";
    /**
     * 外部分享查询
     *
     */
    //商品详情
    public static final String goodDetails = BaseHost +"/shop/goodDetails";
    //新闻详情
    public static final String newsDetail = BaseHost + "/newscast/newsDetail";

    /**
     * 翻译
     */
    public static final String getShops = BaseHost + "/shop/sonShopList";
    public static final String orderTranslation = BaseHostLogined + "/order/orderTranslation";
    public static final String setTransLanguage = BaseHostLogined + "/sys/user/setTransLanguage";
    //获取翻译工具
//    public static final String translator = BaseHostLogined + "/trans/translator";
    //获取翻译工具 （不用登录）
    public static final String translator = BaseHost + "/common/translator";
    //获取翻译语言
    public static final String getTranslateLanguage = BaseHost +"/common/transLanguage";
    //查询翻译开通信息
    public static final String transInfo = BaseHostLogined + "/goodsOrder/transInfo";
    //查询是否开通翻译
    public static final String setAutoTrans = BaseHostLogined + "/sys/user/setAutoTrans";
    //系统缓存地址
//    public static final String SYSTEM_CACHE_PATH = Environment.getExternalStorageDirectory() + "/sjt";
//    public static final String CAMERA_PICTURE_PATH = Environment.getExternalStorageDirectory()	+ "/sjt/image/";
    //录音本地存储路径
    public static final String SOUND_RECORDING_PATH = Environment.getExternalStorageDirectory() + "/sjt/sound/";
    //更新用户经纬度信息
    public static final String UpdateLatAndLng = BaseHostLogined + "/sys/user/updateLatAndLng";


    public static final int REQUESTCODE_TAKE_CAMERA = 0x000001;
    public static final int REQUESTCODE_TAKE_LOCAL = 0x000002;
    public static final int REQUESTCODE_TAKE_LOCATION = 0x000003;
    public static final int SCANNIN_GREQUEST_CODE = 0x000010;
    public static final int REQUESTCODE_CUTTING = 0x000004;
    public static final int REQUESTCODE_COUNTRY = 0x000011;
    public static final int REQUESTCODE_LANGUAGE = 0x000012;
    public static final int REQUESTCODE_ADDRESS = 0x000013;
    public static final int REQUESTCODE_CURRENCY = 0x000014;

    //SjtPushReceiveService用到的常量
    public static final String MSG_ONE_2_ONE = "101";                           //点对点发送
    public static final String SYSTEM_BROADCAST = "102";                        //系统广播

    //消息类型
    public static final String MSG_TYPE_SYSTEM_INFO = "1";                          //消息类型——系统消息
    public static final String MSG_TYPE_ADD_FRIEND = "2";                           //消息类型——新增好友请求
    public static final String MSG_TYPE_CHAT_TEXT = "3";                            //消息类型——文本聊天
    public static final String MSG_TYPE_CHAT_VOICE = "4";                           //消息类型——语音
    public static final String MSG_TYPE_CHAT_PICTURE = "5";                         //消息类型——图片
    public static final String MSG_TYPE_CHAT_FILE = "4";                           //消息类型——文件
    public static final String MSG_TYPE_UPDATE_CONTACT = "101";                    //消息类型——更新通讯录

    public static final String READSTATUS_UNREAD = "1";                           //消息状态——未读
    public static final String READSTATUS_READ = "2";                             //消息状态——已读


    public static final int SEND_TYPE = 1;                                      //发送信息模式
    public static final int RECV_TYPE = 2;                                      //接收模式

    //SjtMainActivity的Message标志位
    public static final int MESSAGE_UPDATE_CONTACT_LIST = 1;                      //更新通讯录列表数据
    public static final int MESSAGE_UPDATE_HISTORY_LIST = 2;                      //更新消息列表数据
    public static final int MESSAGE_UPDATE_CHAT_LIST = 3;                         //更新聊天的内容显示
    public static final int MESSAGE_UPDATE_SYSTEM_INFO_LIST = 4;                  //更新系统消息列表
    public static final int MESSAGE_UPDATE_BADGE = 5;                             //更新消息Badge
    public static final int MESSAGE_UPDATE_UPDATEUSERIMG = 6;                     //更新用户头像
    public static final int MESSAGE_LOGOUT = 7;                                   //退出系统
    public static final int MESSAGE_LOGIN = 8;                                    //登录系统
    public static final int MESSAGE_UPDATE_CONTACT_LIST_AFTER_DEL_WITH_SEARCH = 9;//在查询时进行删除，需要重新关联Adapter,并清空搜索框。
    public static final int MESSAGE_REFRESH_CHAT_LIST = 10;                       //读取聊天旧数据
    public static final int MESSAGE_UPDATE_LAST_CHAT = 11;                        //更新最后一条数据
    public static final int MESSAGE_DELETE_FRIEND = 12;                           //删除好友

    //二维码处理标签
    public static final String QRRECORD_ADDFRIEND = "addfriend";                //二维码添加好友
    public static final String QRRECORD_SHOP_ID = "shopId";                //扫描商家二维码
    public static final String QRRECORD_HTTP = "http";                //网址

    //评论列表标签
    public static final int TOPIC_UPDATE_COMMENT_LIST = 1;                //刷新评论列表


    //系统缓存地址
    public static final String SYSTEM_CACHE_PATH = Environment.getExternalStorageDirectory() + "/com.century.sjt";
    public static final String CAMERA_PICTURE_PATH = SYSTEM_CACHE_PATH + "/image/";
    public static final String DOWNLOAD_PICTURE_PATH = SYSTEM_CACHE_PATH + "/SJT_PIC/";

    public static final String GetIPInfo = "http://ip.taobao.com/service/getIpInfo.php?ip=";

    //2.0

    //邀请好友详情
    public static final String GetinviteDetail = BaseHostLogined + "/invite/queryEachInviteAmount";
    //邀请明细
    public static final String inviteDetail = BaseHostLogined + "/invite/inviteCountInfo";
    //邀请总金额
    public static final String QueryInviteAmount = BaseHostLogined + "/invite/queryInviteAmount";
    //关于世纪通
    public static final String GetAboutSJT = BaseHost + "/common/aboutus";
    //一键呼叫
    public static final String OneTouchCalling = BaseHost + "/common/oneTouchCalling";
    //获取国家信息
    public static final String getCountryInfo = BaseHost + "/common/getCountryInfo";
    //获取国家列表
    public static final String getCountryList = BaseHost + "/common/getCountryList";
    //获取语言
    public static final String getLanguage = BaseHost + "/common/language";
    //获取币别
    public static final String getCurrency = BaseHost + "/common/currency";
    //设置币别
    public static final String setCurrency = BaseHostLogined + "/sys/user/setCurrency";

    public static final int PAGESIZE = 10;


    public static final String SAVINGS_CARD = "00";//储蓄卡
    public static final String CREDIT_CARD = "02";//信用卡


    public static final String SHOP_COUNT_ONE = "1";//商家数：一个
    public static final String SHOP_COUNT_LIST = "2";//商家数：列表


    public static final String SHARE_TITLE = "来自WING的分享";//分享title
}
